#include #include using namespace std; void powiedz( const char * tekst, int czas ) { cout << tekst << endl; int t = clock(); t += czas; while( clock() < t ){} } int main() { float a, b, c, d; cout << "Podaj bok a." << endl; cin >> a; cout << "Podaj bok b." << endl; cin >> b; cout << "Podaj bok c." << endl; cin >> c; cout << "Podaj bok d." << endl; cin >> d; if( ( a == b && c == d ) || ( a == c && b == d ) || ( a == d && b == c ) ) { powiedz( "Mozna zbudowac prostokat.", 2000 ); if( a == b && b == c && c == d ) { powiedz( "Mozna zbudowac rowniez kwadrat.", 2000 ); } } return 0; }